home *** CD-ROM | disk | FTP | other *** search
- Spotnick #1 @5497
- Sun Dec 12 22:10:08 1993
- 0R: net33: @4076 (via @4061) [08:11 12/14/93]
- 0R: net33: @4050 (via @4064) [07:25 12/14/93]
- 0R: net33: @4064 (via @1040) [05:58 12/14/93]
- 0R: net33: @1040 (via @2050) [13:02 12/13/93]
- 0R: net34: @2050 [10:33 12/13/93]
- 0R: net34: @2050 (via @1040) [22:56 12/12/93]
- 0R: net33: @1040 (via @1046) [23:44 12/12/93]
- 0R: net33: @1046 (via @5497) [23:02 12/11/93]
- 0R: net33: @5497 [22:11 12/12/93]
- 0R: net33: @5497 [22:10 12/12/93]
- ╓────────────────────────────────────────────────────────────────────────────╖
- ║ Mod Name : SPOT013.MOD Mod Author: Spotnick 1@5497 WWIVnet ║█
- ║ Difficulty : █▒▒▒▒▒▒▒▒▒ 1@5497 WWIVlink ║█
- ║ WWIV Version : 4.23 1@5497 IceNET ║█
- ║ Mod Date : 12/13/93 1@5497 TerraNET ║█
- ║ Files Affected: MISCCMD.C 1@5497 RockNET ║█
- ║ Description : New BBSLIST For WWIV v4.23 ║█
- ╙────────────────────────────────────────────────────────────────────────────╜█
- ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
-
- Hello folks, this is the 13th mod I released since v4.22, and it is now time
- to go through 4.23 which I had the chance to beta test.
-
- /* Long Description */
-
- This adds a lot of features to your BBSLIST, idea has been stolen from
- the Vision-X software, it will put your BBSlist in a box and ask more
- informations about for it, check it out, much better than standard.
-
-
-
- Step 1 and ONLY step in source code:
- ------------------------------------
-
- Load MISCCMD.C and remplace void bbslist(void) with this new one
-
-
- void bbslist(void)
- {
- int i,f,done,ok;
- char s[150],s1[150],ch,ch1,*ss,s2[150],s3[81];
- char phone[13], name[30], speed[5], type[10], meg[10], nup[10], group[10],
- comment[30];
- long l,l1;
-
- done=0;
- do {
- helpl=0;
- nl();
- prt(3,get_string(489));
- ch=onek("QRNA");
- switch(ch) {
- case 'Q':
- done=1;
- break;
- case 'R':
- printfile("BBSLIST.MSG");
- up(1);
- pl("7══════════════════════════════╧════════════╧══════════════╧════════");
- break;
- case 'N':
- print_net_listing(0);
- break;
- case 'A':
- helpl=25;
- if ((actsl<=10)) {
- nl();
- nl();
- pl(get_string(490));
- nl();
- break;
- }
- if (thisuser.restrict & restrict_automessage) {
- nl();
- nl();
- pl(get_string(491));
- nl();
- break;
- }
- nl();
- pl(get_string(492));
- pl(get_string(493));
- outstr(":");
- mpl(12);
- input(phone,12);
- if ((phone[3]!='-') || (phone[7]!='-'))
- phone[0]=0;
- for (i=0; i<12; i++) {
- if (strchr("0123456789-",phone[i])==0)
- phone[0]=0;
- }
- if (strlen(phone)==12) {
- ok=1;
- sprintf(s1,"%sBBSLIST.MSG",syscfg.gfilesdir);
- f=sh_open1(s1,O_RDONLY | O_BINARY);
- if (f>0) {
- sh_lseek(f,0L,SEEK_SET);
- l=filelength(f);
- if ((ss=malloca(l+500L))==NULL) {
- sh_close(f);
- return;
- }
- sh_read(f,ss,(int)l);
- l1=0L;
- while ((l1<l) && (ok)) {
- i=0;
- do {
- ch=ss[l1++];
- s1[i]=ch;
- if (ch==13)
- s1[i]=0;
- ++i;
- } while ((ch!=10) && (i<120) && (l1<l));
- if (strstr(s1,phone)!=NULL)
- ok=0;
- if (strncmp(s1,phone,12)==0)
- ok=0;
- }
- farfree(ss);
- sh_close(f);
- }
- if (ok) {
- pl(get_string(494));
- nl();
- nl();
- pl(get_string(495));
- outstr(":");
- mpl(30);
- name[0]=0;
- inputl(name,30);
- nl();
- pl(get_string(496));
- pl(get_string(497));
- outstr(":");
- mpl(4);
- input(speed,4);
- nl();
- pl(get_string(498));
- outstr(":");
- mpl(9);
- input(type,9);
- nl();
- pl("How many hard disk space this BBS has?");
- outstr(":");
- mpl(10);
- inputl(meg,10);
- if (meg[0]==0)
- strcpy(meg,"Unknown");
- nl();
- pl("What is the new user password?");
- outstr(":");
- mpl(10);
- inputl(nup,10);
- if (nup[0]==0)
- strcpy(nup,"None");
- nl();
- pl("Enter Group Affiliations");
- outstr(":");
- mpl(10);
- inputl(group,10);
- if (group[0]==0)
- strcpy(group,"None");
- nl();
- pl("Enter Comment About This BBS");
- outstr(":");
- mpl(30);
- inputl(comment,30);
- nl();
- sprintf(s3,"7══════════════════════════════╪════════════╪══════════════╪════════\r\n");
- sprintf(s,"1%-30s7│9 %-10s 7│ 9%-12s 7│ 9%-5s\r\n",name, type, phone, speed);
- sprintf(s2,"1%-30s7│9 %-10s 7│ 9%-12s 7│ 9%-5s\r\n",comment, meg, nup, group);
- nl();
- nl();
- pl(s);
- up(1);
- pl(s2);
- nl();
- prt(9,get_string(499));
- if (yn()) {
- sprintf(s1,"%sBBSLIST.MSG",syscfg.gfilesdir);
- f=sh_open(s1,O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
- if (filelength(f)) {
- sh_lseek(f,-1L,SEEK_END);
- sh_read(f,((void *)&ch1),1);
- if (ch1==26)
- sh_lseek(f,-1L,SEEK_END);
- }
- sh_write(f,(void *)s3,strlen(s3));
- sh_write(f,(void *)s,strlen(s));
- sh_write(f,(void *)s2,strlen(s2));
- sh_close(f);
- nl();
- pl(get_string(500));
- }
- } else {
- pl(get_string(501));
- nl();
- nl();
- }
- } else {
- nl();
- pl(get_string(502));
- nl();
- }
- break;
- }
- } while ((!done) && (!hangup));
- }
-
- Step 2:
-
- Delete your old BBSLIST.MSG in Gfiles dir, and ask other people to re-enter
- their datas in your new bbslist
-
- Here is the attach file for header of the BBSLIST.MSG file, to explain how
- to read the new BBSLIST:
-
- Cut as BBSLIST.MSG and change to your BBS name please.
- -------------------------------------------------------------------------
- 7Alternative Worlds BBS Listing
-
- 7══════════════════════════════╤════════════╤══════════════╤════════
- 1BBS Name 7│9 Software 7│ 9Phone Number 7│ 9Speed
- 1Comment On BBS 7│9 HD Space 7│ 9New User Pwd 7│ 9Group
- 7══════════════════════════════╧════════════╧══════════════╧════════
-
- 7══════════════════════════════╤════════════╤══════════════╤════════
- -------------------------------------------------------------------------
-
-
- Step 3:
-
- Recompile and enjoy, I actually did a mod that not require to compile entire
- BBS (thank me).
-
- If you use this mod, let me know! I love to know who's using my mod and that
- way you'll be informed of maybe new updates. Also, if you see this mod on my
- system the color is very different I assure, but it's the same thing.
-
- Hope you'll like it.
-
- Where to reach me?
-
- At all header's address, and through my bulletin board:
-
- Alternative Worlds, Official WWIV Support Board, (514)-664-4503
- From Montréal, Québec, Canada, Auto-SysOp Validation With No Ratio At 1st Call
-